﻿using System.Windows;
using System.Collections.ObjectModel;
using System.Collections.Generic;
using Shrestha.Data.EventModel;
using Microsoft.Maps.MapControl.WPF;


namespace Shrestha.Charts
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class ChartWindow : Window, IWindow
    {
        public ChartWindowViewModel cwvm { get; set; }

        public ChartWindow(Runner r)
        {
            InitializeComponent();
            cwvm = new ChartWindowViewModel(this, r);
            this.DataContext = cwvm;
        }

        private void Window_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            cwvm.Draw();
        }

        public System.Windows.Controls.Canvas GetDrawingCanvas()
        {
            return this.tgc;
        }


        public System.Windows.Controls.Canvas GetLatCanvas()
        {
            return this.cLat;
        }

        public System.Windows.Controls.Canvas GetLngCanvas()
        {
            return this.cLng;
        }

        public System.Windows.Controls.Canvas GetDateCanvas()
        {
            return this.cDate;
        }

        public System.Windows.Controls.Canvas GetHoverCanvas()
        {
            return this.htgc;
        }
    }
}
